<include file="public@header" />
</head>
<body>
    <div class="layui-fluid js-check-wrap">
        <div class="layui-card">
            <div class="layui-card-header">
                <h3>私信日志管理</h3>
            </div>
            <div class="layui-card-body">
                <form class="form-search layui-form layui-form-item clearfix" action="{:url('AdminSend/send_log')}">
                    <div class="layui-col-md11 layui-col-sm10">
                        <div class="layui-inline">
                            <select class="layui-input" name="part_id">
                                <option value="0">请选择部门</option>
                                <foreach name="parts" item="vo" key="k">

                                <option value="{$k}" <if condition="input('part_id') eq $k">selected</if> >{$vo}</option>
                                </foreach>
                            </select>
                        </div>
                        
                        <div class="layui-inline">
                            <label class="layui-form-label">{:lang('TIME')}:</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input js-layui-date" name="start_time"
                                       value="{$start_time|default=''}"
                                       style="width: 100px;" autocomplete="off">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input js-layui-date" name="end_time"
                                       value="{$end_time|default=''}"
                                       style="width: 100px;" autocomplete="off">
                            </div>                    
                        </div>
                        <div class="layui-inline">
                            <input type="submit" class="layui-btn layui-btn-normal" value="{:lang('SEARCH')}"/>
                        </div>
                        <!-- <a class="layui-btn layui-btn-danger layui-btn-sm" href="{:url('AdminArticle/index')}">清空</a> -->


                       <!--  <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'portal/adminarticle/export')">
                            <div class="layui-inline">
                                <a class="layui-btn layui-btn-danger" href="{:url('AdminArticle/export',array('start_time'=>$start_time,'end_time'=>$end_time,'keyword'=>$keyword,'category'=>$category))}" >导出点击量统计</a>
                            </div>
                        </if> -->
                        <div class="layui-inline">
                            <!-- <a class="layui-btn layui-btn-normal fr" href="javascript:checkAdd();">{:lang('PORTAL_ADMINARTICLE_ADD')}</a> -->
                            
                            <!-- <a class="layui-btn layui-btn-danger" href="{:url('AdminMeetingBook/export',array('start_time'=>input('start_time'),'end_time'=>input('end_time'),'is_pay'=>input('is_pay'),'meet_id'=>input('meet_id')))}" >导出</a> -->

                            <!-- <a class="layui-btn layui-btn-normal fr" href="{:url('AdminMeetingBook/add')}">预定会议室</a> -->
                        </div>
                    </div>
                </form>
            </div>

            <div class="layui-card-body">
                <table class="layui-table" >
                    <thead>
                        <tr>
                            <th width="50">ID</th>
                            <th>部门</th>
                            <th>用户</th>
                            <th>时间</th>
                            <th>内容</th>
                            
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name="data" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$parts[$vo['part_id']]}</td>
                            <td>{$user[$vo['user_id']]}</td>
                            
                            <td>{:date('Y-m-d H:i:s',$vo['time'])}</td>
                            <td>{$vo['content']}</td>
                        </tr>
                        </foreach>
                    </tbody>
                </table>
                <div class="pages">{$page|default=''}</div>
            </div>
        </div>        
    </div>

<include file="public@footer"/>
